package com.jr.service.impl;

import com.jr.dao.IBookManagerDao;
import com.jr.dao.impl.BookManagerDaoImpl;
import com.jr.pojo.Book;
import com.jr.service.IBookManagerService;
import com.jr.util.PageHelper;
import com.jr.vo.ShowBook;

import java.util.ArrayList;

public class BookManagerServiceImpl implements IBookManagerService {

    IBookManagerDao ibmd = new BookManagerDaoImpl();
    @Override
    public ArrayList<ShowBook> queryByBook(ShowBook b, PageHelper ph) {
        return ibmd.selectByBook(b,ph);
    }

    @Override
    public int queryBookCount(ShowBook book) {
        return ibmd.selectBookCount(book);
    }
}
